//配置home下面所有子路由的路由配置
//一个路由配置0要满足的条件，必须符合一个routes的格式，一个数组，里面有很多对象，对象中使用path对应component
const allRoutes = [
    {
        path: "mine",
        component: () => import(/*webpackChunkName:"mine" */ "../pages/Home/Mine"),
        name: "mine",//具名路由
        meta: {
            //储存一些用户自定义的属性
            name: "我的中心",
            icon: "iconfont icon-wodeicon",
            fullPath: "/Home/mine",
        },
    },
    {
        path: "welcome",
        component: () =>
            import(/*webpackChunkName:"welcome" */ "../pages/Home/Welcome"),
        name: "welcome",
        //路由元信息
        meta: {
            //储存一些属性
            name: "管理首页",
            icon: "iconfont icon-shouye",
            fullPath: "/Home/welcome",
        },
    },
    {
        path: "studentManager",
        component: () =>
            import(
          /*webpackChunkName:"studentManager" */ "../pages/Home/StudentManager"
            ),
        name: "studentManager",
        redirect: "/studentManager/studentProduct",
        meta: {
            //储存一些属性
            name: "学员管理",
            icon: "iconfont icon-xueyuanguanli",
            fullPath: "/Home/studentManager",
        },
        children: [
            {
                path: "studentDormitory",
                component: () =>
                    import(
              /*webpackChunkName:"studentDormitory" */ "../pages/Home/StudentManager/StudentDormitory"
                    ),
                name: "studentDormitory",
                meta: {
                    //储存一些属性
                    name: "学员宿舍",
                    icon: "iconfont icon-sushe",
                    fullPath: "/Home/studentManager/StudentDormitory",
                }
            },
            {
                path: "studentProduct",
                component: () =>
                    import(
              /*webpackChunkName:"studentProduct" */ "../pages/Home/StudentManager/StudentProduct"
                    ),
                name: "studentProduct",
                meta: {
                    //储存一些属性
                    name: "学员项目管理",
                    icon: "iconfont icon-guanli",
                    fullPath: "/Home/studentManager/StudentProduct",
                }
            },
            {
                path: "studentProfile",
                component: () =>
                    import(
              /*webpackChunkName:"studentProfile" */ "../pages/Home/StudentManager/StudentProfile"
                    ),
                name: "studentProfile",
                meta: {
                    //储存一些属性
                    name: "学员资料",
                    icon: "iconfont icon-ziliao",
                    fullPath: "/Home/studentManager/StudentProfile",
                }
            }
        ],
    },
    {
        path: "users",
        component: () =>
            import(/*webpackChunkName:"users" */ "../pages/Home/Users"),
        name: "users",
        meta: {
            //储存一些属性
            name: "用户管理",
            icon: "iconfont icon-yonghu",
            fullPath: "/users",
        }
    },
    {
        path: "attendance",
        component: () =>
            import(/*webpackChunkName:"attendance" */ "../pages/Home/Attendance"),
        name: "attendance",
        meta: {
            //储存一些属性
            name: "考勤管理",
            icon: "iconfont icon-kaoqin",
            fullPath: "/Home/attendance",
        }
    },
    {
        path: "statistics",
        component: () =>
            import(/*webpackChunkName:"statistics" */ "../pages/Home/Statistics"),
        name: "statistics",
        meta: {
            //储存一些属性
            name: "数据统计",
            icon: "iconfont icon-tongji1",
            fullPath: "Home//statistics",
        }
    }
];

export default allRoutes